package com.wuzhun.wxmp.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 公共常量类
 *
 * @author : renbaolin
 * @date : 2022/12/6 9:18 上午
 */
public class CommonConstant {
    /**
     * 密码最小长度
     */
    public static final int PASSWORD_MIN_LENGTH = 6;

    /**
     * 密码最大长度
     */
    public static final int PASSWORD_MAX_LENGTH = 32;

    /**
     * username key
     */
    public static final String USERNAME_KEY = "username";

    /**
     * Token key
     */
    public static final String TOKEN_KEY = "token";

    /**
     * 最后活跃时间key
     */
    public static final String LAST_ACTIVE_TIME_KEY = "lastActiveTime";

    /**
     * 压缩包扩展
     */
    public static final String ZIP = ".zip";

    /**
     * 压缩包扩展列表
     */
    public static final List<String> ZIP_LIST = Arrays.asList(ZIP, ".rar",".rar4");

    /**
     * 30 分钟毫秒数
     */
    public static final int THIRTY_MINUTE_MILLS = 30 * 60 * 1000;

    /**
     * 密码有效期
     */
    public static final int PASSWORD_EXPIRE_DAY = 90;
}
